//
//  BSFocusNavController.m
//  BaiSiBuDeJie
//
//  Created by 蔡一凡 on 8/22/16.
//  Copyright © 2016 tsaievan. All rights reserved.
//

#import "BSFocusNavController.h"

@interface BSFocusNavController ()

@end

@implementation BSFocusNavController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    //设置样式
    
    [self.navigationBar setTintColor:[UIColor blackColor]];
    
    NSDictionary *dic = @{
                          NSForegroundColorAttributeName : [UIColor blackColor]
                          };
    
    [self.navigationBar setTitleTextAttributes:dic];
    
}

- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated{
    
    NSArray *arr = self.viewControllers;
    
    
    
    if(arr.count != 0){
        
        viewController.hidesBottomBarWhenPushed = YES;
    }
    
    
    [super pushViewController:viewController animated:animated];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
